package com.IM.handler;

import com.IM.ImServer;
import com.IM.result.Result;
import io.netty.channel.ChannelHandlerContext;

public class GroupChatHandler {
    public static void execute(ChannelHandlerContext channelHandlerContext){
        //将对象加入群聊组
        ImServer.group.add(channelHandlerContext.channel());
        channelHandlerContext.channel().writeAndFlush(Result.success("你以成功加入群聊"));
    }
}
